import http from './http.js'
// 登录
const login = {
	getLogin: '/cloud/uc/v5.0/userpwdlogin', // 登录
	getPhonecode:'/cloud/uc/v5.0/phoneLogin',//手机验证码登录
	getSendCode: '/cloud/uc/v5.0/sendCodeforget',//发送验证码
	getForgetpassworduc: '/cloud/uc/v5.0/forgetpassword',// 忘记密码提交
}
// 首页
const Home = {
	getMenu: '/cloud/machine/v5.0/type/menu', //首页机械类型
	getThirdmenubypid: '/cloud/machine/v5.0/type/getthirdmenubypid',//首页机三级机械列表
	getTypemenu: '/cloud/project/v5.0/need/typemenu', //获取机械二级三级类型菜单
	typemenuthirds: '/cloud/project/v5.0/need/typemenuthirds',
	needUpload: '/cloud/project/v5.0/need/uploadfile', //上传文件
	saveneeds: '/cloud/project/v5.0/need/saveneeds',//提交预订单
	outstandingOwner: '/cloud/common/v5.0/news/feed/newsFeedList',//首页企业名片介绍
	getListMsg:'/cloud/common/v5.0/msg/list',//系统消息列表
	getUnlook:'/cloud/common/v5.0/msg/unlook',//系统消息的红点
}
const News = {
	getNewsfeed: '/cloud/common/v5.0/index/newsList', //新闻资讯
	getSuccessfulCaseList: '/cloud/common/v5.0/index/successfulCaseList'
}
const engineering = {
	getNeedListproject: '/cloud/project/v5.0/index/needList',//工程热门寻租
	getShowneedlist: '/cloud/project/v5.0/index/showneedlist',//工程精品履约项目
	getNeeddetail: '/cloud/project/v5.0/pm/needdetail',//项目详情上半部分
	getNeeddetailFooter: '/cloud/project/v5.0/pm/getneeddetail',//项目详情下半部分

}
const MechanicsList = {
	getMachinetypemenuuc: '/cloud/machine/v5.0/machinetraces/machinetypemenu',//机械中心的机械一级导航
	getMachineList: '/cloud/machine/v5.0/official/machineList',//机械大厅列表
	getHotlist: '/cloud/machine/v5.0/official/hotmachinelist',//热门机械
	getBrandmenuByAToZ: '/cloud/machine/v5.0/official/brandmenuByAToZ',//机械品牌A_Z
	getAddressProvince: '/cloud/uc/v5.0/web/mc/province',//机械中心地址筛选
	getmachine: '/cloud/machine/v5.0/machinesbutler/getmachine',//机械列表详情
}
const Personal = {
	getIdCardSubmit: '/cloud/uc/v5.1/verify/idcard/submit', //实名认证提交
	getStatus:'/cloud/uc/v5.0/enterprise/getStatus',//获取审核状态
	getFront:'/cloud/uc/v5.0/verify/idCard/front',//上传身份证
	getMyinfo:'/cloud/uc/v5.1/verify/idcard/info',//获取身份证信息
	getedit:'/cloud/uc/v5.0/head/edit',//修改头像
	getUploadlicense:'/cloud/uc/v5.1/verify/enterprise/license',//上传营业执照
	seeCompanySubmit:'/cloud/uc/v5.1/verify/enterprise/submit',//提交企业认证
	getinfo:'/cloud/uc/v5.1/verify/enterprise/info',//获取企业上传信息
	setSubmit:'/cloud/uc/v5.1/verify/enterprise/apply/submit',//加入企业提交
	getEnterpriseInfo:'/cloud/uc/v5.1/verify/enterprise/apply/info',//加入企业详情
	getSearch:'/cloud/uc/v5.1/verify/enterprise/apply/search',//查询企业列表
	getNeedlist:'/cloud/project/v5.0/projectseek/getpreorderlist',//工程方项目管理列表
	getNeedlist1:'/cloud/project/v5.0/rent/getpreorderlist',//设备方项目管理列表
	getModelmenu:'/cloud/machine/v5.0/create/modelmenu',//获取机械品牌型号菜单
	upDataImg:'/cloud/machine/v5.0/create/updateImg',//机械列表新增机械上传机械图片
	setSavebase:'/cloud/machine/v5.1/manage/create/submit',//保存机械信息
	getmachineListData:'/cloud/machine/v5.1/manage/list',//获取机械列表
	getmachinesandcount:'/cloud/machine/v5.0/machinesbutler/getmachinesandcount',//机械大厅数据
	editInfo:'/cloud/machine/v5.1/manage/create/info',//编辑机械的获取机械回显信息
	editInfoData:'/cloud/machine/v5.1/manage/info',//个人中心机械详情
	getPersonalStatus:'/cloud/uc/v5.1/verify/status',//获取认证相关审核状态
	getStatistics:'/cloud/machine/v5.0/official/statistics',//个人中心机械统计
	needlistcount:'/cloud/project/v5.0/rent/needlistcount',//机械主获取订单角标数字
	setSendcode:'/cloud/uc/v5.0/pwd/reset/sendcode',//重置密码-发送短信验证码
	setPersonalSubmit:'/cloud/uc/v5.0/pwd/reset/submit',//重置密码-提交更新密码
	setSavebusincooperat:'/cloud/common/v5.0/cooperat/savebusincooperat',//加入轰隆隆
	rentseekingneeddetails:'/cloud/project/v5.0/need/rentseekingneeddetails',//个人中心项目管理寻租项目详情
}
// 成功案例详情
export function getSuccessfulCaseDetail(id) {
	return http.get(`/cloud/common/v5.0/index/newsInfo/${id}`)
}
export function getNewsfeed(params) {
	return http.get(`${News.getNewsfeed}`, params)
}
export function getSuccessfulCaseList(params) {
	return http.get(`${News.getSuccessfulCaseList}`, params)
}
export function getLogin(params) {
	return http.get(`${login.getLogin}`, params)
}
export function getPhonecode(params) {
	return http.post(`${login.getPhonecode}`, params)
}
export function getSendCode(params) {
	return http.get(`${login.getSendCode}`, params)
}
export function getForgetpassworduc(params) {
	return http.get(`${login.getForgetpassworduc}`, params)
}
export function getMenu(params) {
	return http.get(`${Home.getMenu}`, params)
}
export function getThirdmenubypid(params) {
	return http.get(`${Home.getThirdmenubypid}`, params)
}
export function getTypemenu(params) {
	return http.get(`${Home.getTypemenu}`, params)
}
export function typemenuthirds(params) {
	return http.get(`${Home.typemenuthirds}`, params)
}
export function outstandingOwner(params) {
	return http.get(`${Home.outstandingOwner}`, params)
}
export function getUnlook(params) {
	return http.get(`${Home.getUnlook}`, params)
}
export function getListMsg(params) {
	return http.get(`${Home.getListMsg}`, params)
}
export function saveneeds(params) {
	return http.postt(`${Home.saveneeds}`, params)
}
export function needUpload(params) {
	return http.postUp(`${Home.needUpload}`, params)
}
export function getMachinetypemenuuc(params) {
	return http.get(`${MechanicsList.getMachinetypemenuuc}`, params)
}
export function getMachineList(params) {
	return http.get(`${MechanicsList.getMachineList}`, params)
}
export function getHotlist(params) {
	return http.get(`${MechanicsList.getHotlist}`, params)
}
export function getBrandmenuByAToZ(params) {
	return http.get(`${MechanicsList.getBrandmenuByAToZ}`, params)
}
export function getAddressProvince(params) {
	return http.post(`${MechanicsList.getAddressProvince}`, params)
}
export function getmachine(params) {
	return http.get(`${MechanicsList.getmachine}`, params)
}
export function getNeedListproject(params) {
	return http.get(`${engineering.getNeedListproject}`, params)
}
export function getShowneedlist(params) {
	return http.get(`${engineering.getShowneedlist}`, params)
}
export function getNeeddetail(params) {
	return http.get(`${engineering.getNeeddetail}`, params)
}
export function getNeeddetailFooter(params) {
	return http.get(`${engineering.getNeeddetailFooter}`, params)
}
export function getIdCardSubmit(params) {
	return http.post(`${Personal.getIdCardSubmit}`, params)
}
export function getStatus(params) {
	return http.get(`${Personal.getStatus}`, params)
}
export function getFront(params) {
	return http.postUp(`${Personal.getFront}`, params)
}
export function getMyinfo(params) {
	return http.get(`${Personal.getMyinfo}`, params)
}
export function getedit(params) {
	return http.postUp(`${Personal.getedit}`, params)
}
export function getUploadlicense(params) {
	return http.postUp(`${Personal.getUploadlicense}`, params)
}
export function seeCompanySubmit(params) {
	return http.post(`${Personal.seeCompanySubmit}`, params)
}
export function getinfo(params) {
	return http.get(`${Personal.getinfo}`, params)
}
export function setSubmit(params) {
	return http.post(`${Personal.setSubmit}`, params)
}
export function getEnterpriseInfo(params) {
	return http.get(`${Personal.getEnterpriseInfo}`, params)
}
export function getSearch(params) {
	return http.get(`${Personal.getSearch}`, params)
}
export function getNeedlist(params) {
	return http.get(`${Personal.getNeedlist}`, params)
}
export function getNeedlist1(params) {
	return http.get(`${Personal.getNeedlist1}`, params)
}
export function getModelmenu(params) {
	return http.get(`${Personal.getModelmenu}`, params)
}
export function upDataImg(params) {
	return http.postUp(`${Personal.upDataImg}`, params)
}
export function setSavebase(params) {
	return http.post(`${Personal.setSavebase}`, params)
}
export function getmachineListData(params) {
	return http.get(`${Personal.getmachineListData}`, params)
}
export function getmachinesandcount(params) {
	return http.get(`${Personal.getmachinesandcount}`, params)
}
export function editInfo(params) {
	return http.get(`${Personal.editInfo}`, params)
}
export function editInfoData(params) {
	return http.get(`${Personal.editInfoData}`, params)
}
export function getPersonalStatus(params) {
	return http.get(`${Personal.getPersonalStatus}`, params)
}
export function getStatistics(params) {
	return http.get(`${Personal.getStatistics}`, params)
}
export function needlistcount(params) {
	return http.get(`${Personal.needlistcount}`, params)
}
export function setPersonalSubmit(params) {
	return http.post(`${Personal.setPersonalSubmit}`, params)
}
export function setSendcode(params) {
	return http.get(`${Personal.setSendcode}`, params)
}
export function setSavebusincooperat(params) {
	return http.get(`${Personal.setSavebusincooperat}`, params)
}
export function rentseekingneeddetails(params) {
	return http.get(`${Personal.rentseekingneeddetails}`, params)
}